package com.zyj.eps.service;

import com.zyj.eps.mapper.TemperatureMapper;
import com.zyj.eps.pojo.Temperature;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author super
 * @date 2022/4/1 18:07
 */
@Service
public class TemperatureServiceImpl implements TemperatureService{
    @Autowired
    TemperatureMapper temperatureMapper;
    @Override
    public int insetTemperature(Temperature temperature) {
        return temperatureMapper.insetTemperature(temperature);
    }

    @Override
    public List<Temperature> getAllTemperature(int tid) {
        return temperatureMapper.getAllTemperature(tid);
    }

}
